package com.yoi.service.impl;

import com.yoi.bean.Book;
import com.yoi.mapper.BookMapper;
import com.yoi.service.BookService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
    public class BookServiceImpl implements BookService {

        @Autowired
        private BookMapper bookMapper;


    @Override
    public Book getBook(Integer id) {
        return bookMapper.selectByPrimaryKey(id);
    }
}

